package com.itheima.zuoye.zy4;

public class Person {
    private int idCard;
    private String userName;
    // 以下是getter和setter方法

    public int getIdCard() {
        return idCard;
    }

    public void setIdCard(int idCard) {
        this.idCard = idCard;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Person(int idCard, String userName) {
        this.idCard = idCard;
        this.userName = userName;
    }

    public Person() {
    }

    @Override
    public String toString() {
        return "Person{" +
                "idCard=" + idCard +
                ", userName='" + userName + '\'' +
                '}';
    }
    // 省略


}
